home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 52
/
Volume 52 - JOGO DISK .iso
/
Games
/
shopdrop.swf
/
scripts
/
frame_11
/
DoAction.as
Wrap
Text File
|
2007-09-27
|
2KB
|
77 lines
function monitorComm()
{
_root.nDebug3 = "monitoring comm, " + mcComm.getBytesTotal();
if(mcComm.getBytesTotal() > 4)
{
if(mcComm.getBytesTotal() == mcComm.getBytesLoaded())
{
muck++;
clearInterval(nInterval);
}
}
}
stop();
_global.mcRoot = this;
_global.bHelp = false;
_global.bMute = false;
oBase = new smashing.Base();
this.onEnterFrame = function()
{
var _loc2_ = this.getBytesLoaded() / this.getBytesTotal();
var _loc3_ = this.mcLoader.mcPercent;
var _loc4_ = this.mcLoader.mcBar;
_loc3_.gotoAndStop(Math.ceil(_loc2_ * _loc3_._totalframes));
_loc4_.gotoAndStop(Math.ceil(_loc2_ * _loc4_._totalframes));
if(_loc2_ == 1)
{
this.play();
delete this.onEnterFrame;
}
};
_global.debugVR = false;
_global.Postopia = Object.Postopia;
_root.nDebug1 = Object.Postopia.VR.balance_balance;
_root.nDebug2 = Object.Postopia.VR;
if(!_global.debugVR)
{
if(Object.Postopia.VR.balance_balance)
{
_global.bBalance = true;
}
else
{
_global.bBalance = false;
}
if(Object.Postopia.VR.balance_bonusCard)
{
_global.bBonusCard = true;
}
else
{
_global.bBonusCard = false;
}
if(Object.Postopia.VR.balance_tries)
{
_global.bTries = true;
}
else
{
_global.bTries = false;
}
}
else
{
_global.bBalance = true;
_global.bBonusCard = true;
_global.bTries = true;
}
_level0.filepath = _level0.filepath == null ? "" : _level0.filepath;
if(_level0.comm != undefined)
{
if(typeof _level0.comm != "movieclip")
{
mcComm.loadMovie(_level0.comm);
nInterval = setInterval(monitorComm,10);
}
}